import {Component} from '@angular/core'
import {User} from './user.model'
import {UserServcie} from './user.service'
@Component({
	moduleId:module.id,
	templateUrl:"dashboard.component.html",
	styleUrls:["dashboard.css"]
})
export class DashboardComponent{
	private users:User[];
	constructor(private userService:UserServcie){
		userService.findAllUsers()
		.subscribe(users=>this.users=users.slice(0,2));
	}
}